package com.weixing.mall.provider.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.weixing.mall.provider.model.domain.MediaPlatform;
import com.weixing.mall.provider.model.query.MediaPlatformQuery;
import com.weixing.mall.provider.model.vo.ads.MediaPlatformEditVo;
import com.weixing.mall.provider.model.vo.ads.MediaPlatformVo;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 * 广告模块-媒体平台表 Mapper 接口
 * </p>
 *
 * @author Small
 * @since 2019-11-18
 */
public interface MediaPlatformMapper extends BaseMapper<MediaPlatform> {

    IPage<MediaPlatformVo> selectOfPage(@Param("pg") Page page,@Param("qs") MediaPlatformQuery mediaPlatformQuery);

    List<MediaPlatformVo> selectOfPage(@Param("qs") MediaPlatformQuery mediaPlatformQuery);

    IPage<MediaPlatformVo> selectByIsPubPool(@Param("pg") Page page,@Param("qs") MediaPlatformQuery mediaPlatformQuery);

    void updateIsPubPool(List list);

    void claim(ArrayList<MediaPlatform> list);

    MediaPlatformEditVo selectMediaPlatformEditVoById(Long id);

    int findPublic(String startTime,String endTime);
}
